<!DOCTYPE html>
<html>
<head>
    <title>验收项目表</title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="../../css/bootstrap.min.css">
    <link rel="stylesheet" href="../../css/font-awesome.min.css">
    <link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
    <link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
    <link rel="stylesheet" href="../../css/main.css">
    <script src="../../libs/jquery.min.js"></script>
    <script src="../../plugins/layer/layer.js"></script>
    <script src="../../libs/bootstrap.min.js"></script>
    <script src="../../libs/vue.min.js"></script>
    <script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
    <script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
    <script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
    <script src="../../js/common.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="form-group col-sm-2">
            <div class="col-sm-2 control-label">项目名称</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="q.pBName" @keyup.enter="query" placeholder="项目名称">
            </div>
        </div>

        <div class="form-group col-sm-2">
            <div class="col-sm-2 control-label">项目状态</div>
            <div class="col-sm-10">
                <select class="form-control" v-model="q.pBState" placeholder="项目状态">
                    <option  value="">
                        全部
                    </option>
                    <option v-for="d in project_state" :value="d.dKey">
                        {{d.dValue}}
                    </option>
                </select>
            </div>
        </div>

        <a class="btn btn-default" @click="reload">查询</a>


        <div class="grid-btn">
            <!--<a v-if="hasPermission('eys:epbase:save')" class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>-->
            <!--<a v-if="hasPermission('eys:epbase:update')" class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>-->
            <!--<a v-if="hasPermission('eys:epbase:delete')" class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>-->
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">所属批次ID</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.bGuid" placeholder="所属批次ID"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">业务类型 数据字典 category_type</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.pBCategory"
                           placeholder="业务类型 数据字典 category_type"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">项目类别 数据字典 progect_type</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.pBType"
                           placeholder="项目类别   数据字典  progect_type"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">储备状态 数据字典 project_hivetype（规划、储备）</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.pBHive"
                           placeholder="储备状态  数据字典 project_hivetype（规划、储备）"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">项目状态 数据字典 project_state (踏勘、估算调整、归档)</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.pBState"
                           placeholder="项目状态  数据字典 project_state (踏勘、估算调整、归档)"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">项目名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.pBName" placeholder="项目名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">项目地址</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.pBAddress" placeholder="项目地址"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">项目经度</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.pBLongitude" placeholder="项目经度"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">项目纬度</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.pBLatitude" placeholder="项目纬度"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">项目单位ID</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.pBOrgid" placeholder="项目单位ID"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">所属申请书id</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.aGuid" placeholder="所属申请书id"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">所属预算标准id 多个 以，隔开</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.sGuid" placeholder="所属预算标准id  多个 以，隔开"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">最高电压等 数据字典 voltage_type(10kV,380V,220V)</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.pBVoltage"
                           placeholder="最高电压等 数据字典 voltage_type(10kV,380V,220V)"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">踏勘人ID 多个逗号隔开</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.pBCollectid" placeholder="踏勘人ID 多个逗号隔开"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">估算人ID 逗号隔开</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.pBReckonid" placeholder="估算人ID 逗号隔开"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">创建时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.pBAddtime" placeholder="创建时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">项目申请书名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.pBBookname" placeholder="项目申请书名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">估算调整日期</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.pBChangetime" placeholder="估算调整日期"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">数据状态</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.pBDatastate" placeholder="数据状态"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">是否作图</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ePBase.isDraw" placeholder="是否作图"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="../../js/modules/eys/epbase.js"></script>
</body>
</html>